/*
 * @description  :一键搜 service
 * @descriptionDetail: 一键搜 service
 * @copyright    : 浙江烟草
 * @author       : dw
 * @create       : 2022-10-09 22:21:21
 */
import apiUrl from "@/common/api_urls/infoAnalysis";
import reqHelper from "@/common/reqHelper";

export default {
/**
   * 查询
   * @param {*} prams
   * @returns
   */
  searchInfo(prams) {
    return reqHelper.postJson({...prams,}, apiUrl.searchInfo);
  },
  /**
   * 历史搜索
   * @param {*} prams
   * @returns
   */
  gosearchHistory(prams) {
    return reqHelper.postForm({ prams,}, apiUrl.gosearchHistory);
  },
  /**
   * 获取信息
   * @param {Object} param
   */
  getArchiveInfoByWord(param){
    return reqHelper.postForm(param, apiUrl.getArchiveInfoByWord);
  },
  /**
   * 一键搜相关推荐
   * @param {Object} param
   */
  recommend(param){
    return reqHelper.postForm(param, apiUrl.recommend);
  },
};
